package com.common.mongo;

import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.mongodb.repository.Query;

/**
 * @classDescription:
 * @author:xiayingjie
 * @createTime:16/8/16
 */

public interface OrderDAO extends MongoRepository<Order,String> {
    @Query("{'id':?0}")
    public Order getOrder(String id);
}
